<?php
/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2010 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_whats_new.php 17617 2010-09-25 20:13:29Z drbyte $
 */
  $content = "";
  $contenttopimg = zen_image(DIR_WS_TEMPLATE_IMAGES.'category.png');
  $content .=  '<div class="middle">';
  $content .= '<table cellpadding="2" cellspacing="0" style="width: 100%;"> ';
  $whats_new_box_counter = 0;
  while (!$random_whats_new_sidebox_product->EOF) {
    $whats_new_box_counter++;
    $whats_new_price = zen_get_products_display_price($random_whats_new_sidebox_product->fields['products_id']);
    $content .= "\n" . '  <tr> ';
    $content .= "\n" . '  <td> ';
    $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], 38, 38) . '</a>';//SMALL_IMAGE_WIDTH
    $content .= "\n" . '  </td> ';
    $content .= "\n" . '  <td> ';
    $content .= $random_whats_new_sidebox_product->fields['products_name'] . '<br />';
    $content .= $whats_new_price . '<br />';
    $content .= "\n" . '  </td> ';
    $content .= '</tr> ';
    $random_whats_new_sidebox_product->MoveNextRandom();
  }
  $content .= '</table>' . "\n";
  $content .= '</div>' . "\n";
